package com.smartcommunity.entity.tag.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * Copyright: Copyright (c) 2019
 * Company:
 *
 * @author WangShang
 * @version V1.0
 * @date @date  2019-07-02
 */
@Data
@ApiModel
public class UpdateTagDto {


    @NotNull(message = "标签ID不能为空")
    @ApiModelProperty(value="标签ID",name="tagId")
    private Integer tagId;

    @NotNull(message = "标签分组不能为空")
    @ApiModelProperty(value="标签分组",name="groupId")
    private Integer groupId;

    @NotNull(message = "标签名称不能为空")
    @ApiModelProperty(value="标签名称",name="name")
    private String name;

    @NotNull(message = "标签颜色不能为空")
    @ApiModelProperty(value="标签颜色 ",name="tagColor")
    private String tagColor;

    @ApiModelProperty(value="有效时间 ",name="deadline")
    private Integer deadline;
}
